using System;
using GameFramework.WebServer;

namespace Server.Proto
{
    /// <summary>
    /// 角色登录通知 GS->CS
    /// </summary>
    public class WebRoleLoginNotify : WebServerReq<WebServerResp>
    {
        public const string RouteKey = "role_login_notify";

        public override string Route => RouteKey;
        
        /// <summary>
        /// 角色id
        /// </summary>
        public long Id { get; set; }
        
        /// <summary>
        /// 账号id
        /// </summary>
        public long AccountId { get; set; }
        
        /// <summary>
        /// 服务器id
        /// </summary>
        public int ServerId { get; set; }
        
        /// <summary>
        /// 登录时间
        /// </summary>
        public DateTime Time { get; set; }

        public override void OnRecycle()
        {
            Id = default;
            AccountId = default;
            ServerId = default;
            Time = default;
        }
    }
}